﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ArtOfTest.WebAii.Controls.HtmlControls;

namespace SM2Admin
{
    public class Accounts
    {
        public static void Add(string strAccount, string strNumberKeywords, string strNumberResults, string strNumberProfiles)
        {
            HtmlDiv pnlContent = Utilities.GlobalObject.MANAGER.ActiveBrowser.Find.ById<HtmlDiv>("pnlContent");
            HtmlDiv cphPageContent_Update_Panel = pnlContent.Find.ById<HtmlDiv>("cphPageContent_Update_Panel");
            HtmlInputText cphPageContent_newAccount = cphPageContent_Update_Panel.Find.ById<HtmlInputText>("cphPageContent_newAccount");

            //Set name of account
            SM2Input.Tradition.TypeTextIntoTextField(cphPageContent_newAccount, "");

            HtmlTable cphPageContent_inputFields = cphPageContent_Update_Panel.Find.ById<HtmlTable>("cphPageContent_inputFields");
            HtmlInputText cphPageContent_numKeywords = cphPageContent_inputFields.Find.ById<HtmlInputText>("cphPageContent_numKeywords");
            HtmlInputText cphPageContent_numResults = cphPageContent_inputFields.Find.ById<HtmlInputText>("cphPageContent_numResults");
            HtmlInputText cphPageContent_numProfiles = cphPageContent_inputFields.Find.ById<HtmlInputText>("cphPageContent_numProfiles");
            
            //Set keywords
            SM2Input.Tradition.TypeTextIntoTextField(cphPageContent_numKeywords, "");

            //Set number of results
            SM2Input.Tradition.TypeTextIntoTextField(cphPageContent_numResults, "");

            //Set profiles
            SM2Input.Tradition.TypeTextIntoTextField(cphPageContent_numProfiles, "");
        }

        public static void Delete()
        {

        }

        public static void Load()
        {

        }

        public static void Edit()
        {

        }
    }
}
